﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    @Html.Partial("~/Views/Shared/Shared.cshtml")

    <style type="text/css">
        body {
            PADDING-RIGHT: 0px;
            PADDING-LEFT: 0px;
            BACKGROUND: url(../style/images/blue_glow.jpg) #226cc5 repeat-x 50% top;
            PADDING-BOTTOM: 0px;
            MARGIN: 110px 0px 0px;
            FONT: 12px/150% Arial, "宋体",Helvetica,sans-serif;
            PADDING-TOP: 0px;
            TEXT-DECORATION: none;
            background-size: cover;
        }

        #desktopPanel {
            position: absolute;
            top: 30%;
            left: 50%;
            margin-top: -200px;
            margin-left: -300px;
            width: 600px;
            height: 400px;
            border: 1px;
        }

        .user_main_box {
            position: absolute;
            top: 50%;
            height: 150px;
        }

        .login-body {
            /*background: url(../style/images/fj.jpg) #FFF no-repeat center;*/
            display: block;
            width: 500px;
            height: 500px;
            border: none;
            vertical-align: middle;
            margin-right:auto;
            margin-left:auto;
        }
    </style>
    <script type="text/javascript">
    </script>
</head>
<body style="text-align:center;border:none;width:100%;height:100%;">

    <div id="wallpapers">
    </div>

    <div id="desktopPanel">
        <div class="user_main_box">
            <div class="login-body">
                <form id="frmLogin" method="post" action="/home/login">
                    <input type="hidden" name="ReturnUrl" value="@Request["ReturnUrl"]" />
                    <table class="">
                        <tr><th style="text-align:left;">用户名：</th></tr>
                        <tr>
                            <td>
                                <input type="text" name="LoginName" value="@(Model == null || Model.Data == null ? string.Empty : Model.Data.LoginName)" />
                            </td>
                        </tr>
                        <tr><th style="text-align:left;">密码：</th></tr>
                        <tr>
                            <td>
                                <input type="password" name="Password" value="" />
                            </td>
                        </tr>
                        @if (Model != null)
                        {
                            if (!Model.IsSuccess && Model.VaildList != null && Model.VaildList.Count > 0)
                            {
                                <tr>
                                    <td style="text-align:left;color:red;">
                                        @foreach (var item in Model.VaildList)
                                        {
                                            @:<span>@item.Message</span><br>
                        }
                                    </td>
                                </tr>
                            }
                        }
                        <tr>
                            <th style="text-align:left;">
                                <input id="btnLogin" type="image" src="../style/images/login.gif" style="border: none; margin-top: 10px;" />
                                @*<a id="btnLogin" onclick="$('#frmLogin').submit();" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:false">登录</a>*@
                            </th>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
   
</body>
</html>
